package com.xuecheng.content.contrller;


import com.xuecheng.content.service.iml.CoursePublishPreServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "课程提交审核接口")
@RestController
@RequiredArgsConstructor
@Slf4j
public class CoursePublishPreController {
    private final CoursePublishPreServiceImpl coursePublishService;

    @ApiOperation("提交课程审核")
    @PostMapping("/courseaudit/commit/{courseId}")
    public void commitAudit(@PathVariable("courseId") Long courseId){
        log.info("提交课程审核：{}",courseId);
        Long companyId=1232141425L;
        coursePublishService.commitAudit(courseId,companyId);
    }
}
